package com.pine.dcts.service;


import java.util.function.Consumer;

/**
 * @author xiaoyuan
 * @create 2021/1/13 20:18
 **/
public class TaskRunnerDelegate  implements Runnable {
    private Task task;
    private TaskRunnerCallback callback;

    public  TaskRunnerDelegate(Task task, TaskRunnerCallback callback){
         this.task =task;
         this.callback = callback;
    }
    @Override
    public void run() {

    }

    public void cllback(	Consumer<TaskRunnerCallback> consumer){
        consumer.accept(callback);
    }
}
